package step2;

//Subject接口的实现类
public class RealSubject implements Subject {

    @Override
    public int sellBooks() {
        System.out.println("调用真实对象的sellBooks方法");
        return 1;
    }

    @Override
    public String speak() {
        System.out.println("调用真实对象的speak方法");
        return "张三";
    }

    @Override
    public void read(String bookName) {
        System.out.println("调用真实对象的read方法");
        System.out.println("正在读的书是：" + bookName);
    }

}
